tools: Add a block-tap script for setting up tapdisks via tap-ctl
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 6 Jul 2015 10:51:40 +0000 (11:51 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 7 Jul 2015 15:04:15 +0000 (16:04 +0100)
commit529c9e9c063cb092d3b477c55e32e87442d2c778
tree21a79d8b0e8c7b33908b85c58d8858b7dce213e4
parenteff228d947a645a1427fe3acbae589d44d0eaa10
tools: Add a block-tap script for setting up tapdisks via tap-ctl

The blocktap library isn't really necessary; all the necessary functionality
is available via the tap-ctl binary.

To use:

script=block-tap,vdev=[whatever],target=vhd:/path/to/file.vhd

script=block-tap,vdev=[whatever],target=aio:/path/to/file.raw

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/hotplug/Linux/Makefile
tools/hotplug/Linux/block-tap [new file with mode: 0755]